package avicit.bdp.dcs.common.rest;

import avicit.bdp.dcs.common.service.CommonService;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class CommonRestTest {

    @Before
    public void setUp() throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void getJobStatus() throws Exception{
        CommonService commonService = new CommonService();
        int code = commonService.getJobStatus(1).get(0).getCode();
        assertEquals(20, code);
    }

}